#include "types.h"
#include "mem.h"

extern uint ticks;

void timer_handler(){
	uint lticks = 0;
	memGetW(0x1000,&ticks,lticks);
	lticks++;
	memPutW(0x1000,&ticks,lticks);
}

uint get_ticks() {
	uint lticks = 0;
	memGetW(0x1000, &ticks, lticks);
	return lticks;
}
